package com.swind.fast.modules.app.halali.partner.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import com.swind.fast.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import com.swind.fast.common.system.base.entity.SwindEntity;
import com.swind.fast.modules.app.halali.partner.vo.common.CategoryVo;
import java.util.List;

/**
 * @Description: 餐厅
 * @Author: swind
 * @Date:   2021-11-20
 * @Version: V1.0
 */
@Data
@TableName("halali_restaurant_meal")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="菜品", description="菜品")
public class RestaurantMeal extends SwindEntity {

    @ApiModelProperty(value = "所属餐厅")
    @Dict(dictTable ="halali_restaurant", dicText = "title", dicCode = "id")
    private java.lang.String restaurantId;

    @ApiModelProperty(value = "所属餐厅类别")
    @Dict(dictTable ="halali_restaurant_category", dicText = "title", dicCode = "id")
    private java.lang.String restaurantCategoryId;

    @ApiModelProperty(value = "名称")
    private java.lang.String title;

    @ApiModelProperty(value = "描述")
    private java.lang.String description;

    @ApiModelProperty(value = "图片")
    private java.lang.String pic;

    @ApiModelProperty(value = "价钱")
    private Double price;

    @ApiModelProperty(value = "折扣")
    private Double discountRate;

    @ApiModelProperty(value = "折扣后价格")
    private Double discountPrice;

    @ApiModelProperty(value = "是否上架")
    private Boolean inStock;

    @ApiModelProperty(value = "订单详情数量")
    @TableField(exist = false)
    private Integer quantity;

    @ApiModelProperty(value = "排序")
    private Integer rank;

    @ApiModelProperty(value = "Tax")
    private Double tax;

    @ApiModelProperty(value = "Packing Fee")
    private Double packingFee;

    @ApiModelProperty(value = "分类唯一ID")
    @TableField(exist = false)
    private String uniqueId;

    @ApiModelProperty(value = "菜品ID")
    @TableField(exist = false)
    private String mealId;

    @ApiModelProperty(value = "菜品ID")
    @TableField(exist = false)
    private List<CategoryVo> categories;
}
